package com.smart.electronic.fence.mapper;

import com.smart.electronic.fence.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface UserMapper {
    List<User> selectByAll();

    User selectById(@Param("userId")BigInteger userId);

    User selectByUserNameAndUserPassword(@Param("userName")String  userName,@Param("userPassword")String  userPassword);

    int deleteById(@Param("userId")BigInteger userId);

    int updateById(@Param("user") User user);

    int updatePwdByUserName(@Param("user") User user);

    int updateUserOnlineByUserNameAndPwd(@Param("user") User user);
    

    int insert(@Param("user")User user);


}
